class Geometry {
//暂时没有用到 用其他算法判断
    static getInstance() {
        if( !Geometry.instance ) {
              Geometry.instance = new Geometry();
        }
        return Geometry.instance;
    }

    containsLocation( checkPonit , points) {
        let paths= [];
        let place = new google.maps.LatLng(checkPonit[0],checkPonit[1]);
        for( let i=0 ; i < points.length; i++ ) {
            paths.push( new google.maps.LatLng( points[i].lat, points[i].lng ) )
        }

        let bermudaTriangle = new google.maps.Polygon({
            paths: paths
        });

        //console.log(google.maps.geometry.poly.containsLocation(place, bermudaTriangle),'new mothed');
    }


}